package library.and.xps.com.step.view.fragment;

import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;

import library.and.xps.com.step.adapter.TeamWorkAdapter;
import library.and.xps.com.step.util.CommonUtils;
import library.and.xps.com.step.util.ListDividerItemDecoration;
import library.and.xps.com.step.view.base.BaseSwipeRefreshFragment;

public class TeamWorkFragment extends BaseSwipeRefreshFragment {
    private int position = 0;
    @Override
    protected void getData(int pageIndex) {

    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        recyclerView.setLayoutManager(new LinearLayoutManager(activity));
        recyclerView.setBackgroundColor(Color.parseColor("#dcdcdc"));
        float density = CommonUtils.getDensity();
        recyclerView.addItemDecoration(new ListDividerItemDecoration((int) (10 * density)));
        position = getArguments().getInt("position");
        abstractRecyclerAdapter = new TeamWorkAdapter(activity, recyclerView, position);
        super.onActivityCreated(savedInstanceState);
        onRefresh();
    }



}
